package smartclass.fragment;

import smartclass.data.TableItem;
import smartclass.present.StudentActivity;

import com.example.smartclass.R;
import com.samsung.android.sdk.pen.engine.SpenFlickListener;
import com.samsung.android.sdk.pen.engine.SpenSurfaceView;

import android.annotation.SuppressLint;
import android.app.ActionBar;
import android.os.Bundle;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;

@SuppressLint("ValidFragment")
public class StudentDrawFragment extends Fragment {
	private SpenSurfaceView mSpenSurfaceView;
	private StudentActivity studentActivity;
	public static ActionBar actionBar;

	public StudentDrawFragment(StudentActivity studentActivity) {
		this.studentActivity = studentActivity;
	}

	@Override
	public void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
	}

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		actionBar = studentActivity.getActionBar();
		actionBar.setDisplayHomeAsUpEnabled(true);
		actionBar.setHomeButtonEnabled(true);
		View v = inflater.inflate(R.layout.student_fragment_draw, container,
				false);

		return v;
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
	}

	@Override
	public void onResume() {
		// TODO Auto-generated method stub
		super.onResume();
		studentActivity.setTitle("Smart Class");
	}

}
